import request from '@/utils/request'

export default {
  // 墒情设备列表
  soilList() {
    return request({
      url: '/nyDevice/soilList',
      method: 'get'
    })
  },
  // 墒情设备获取历史数据
  getSoilData(query) {
    return request({
      url: '/nyDevice/getSoilData',
      method: 'get',
      params: query
    })
  }
}
